package com.gitee.dupe.authority.service;

import com.gitee.dolt.boot.service.SuperService;
import com.gitee.dupe.authority.entity.User;
import com.gitee.dupe.authority.entity.UserThirdId;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LYH
 * @since 2020-08-27
 */
public interface IUserThirdIdService extends SuperService<UserThirdId> {

    /**
     * 获取
     *
     * @param appType
     * @param appId
     * @param thirdId
     * @return
     */
    UserThirdId getOneByAppTypeAndAppIdAndThirdId(String appType, String appId, String thirdId);

    /**
     * 获取
     *
     * @param appType
     * @param appId
     * @param userId
     * @return
     */
    UserThirdId getOneByAppTypeAndAppIdAndUserId(String appType, String appId, String userId);

    /**
     * 获取用户
     *
     * @param appType
     * @param appId
     * @param thirdId
     * @return
     */
    User getUserByAppTypeAndAppIdAndThirdId(String appType, String appId, String thirdId);


}
